import unittest
from dev.stock_information.stocks_information import get_aStock_code, get_aStock_zh_a_spot

class StocksInformationTest(unittest.TestCase):

    def test_get_aStock_code(self):
        print("************   测试stocks_information.get_aStock_code()   ************")
        code = get_aStock_code()
        print(code)

    def test_get_aStock_zh_a_spot(self):
        print("************   测试stocks_information.get_aStock_zh_a_spot()   ************")
        spot = get_aStock_zh_a_spot()   #新浪财经规定爬取数据要有时间间隔（差不多2分钟）
        print(spot)